﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Moq;

using Whatzup.Mobi.Common;
using Whatzup.Mobi.AppSvc;
using Whatzup.Mobi.AppSvc.Provider;

namespace Whatzup.Mobi.Test.Moq
{
    class MoqServiceLocator
        :Mock<IServiceLocator>
    {
        public MoqMediaRepo moqMediaRepo;
        public MoqProvider moqProvider;
        public MoqServiceLocator()
        {
            moqMediaRepo = new MoqMediaRepo();
            moqProvider = new MoqProvider();

            Setup(m => m.GetService<IMediaRepo>()).Returns(moqMediaRepo.Object);
            Setup(m => m.GetService<IMediaProvider>()).Returns(moqProvider.Object);
        }
    }
}
